package com.example.demo.controller;
import com.alibaba.fastjson.JSONObject;
import com.example.demo.common.ResultModel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
@CrossOrigin
public class TestController {
    @Autowired


    /**
     * 公共接口测试
     *
     * @return {
     * "code": 200,
     * "date": "2020-03-22 21:34:31",
     * "data": "已连接上公共接口"
     * }
     */
    @GetMapping("/contection")
    @ResponseBody
    public ResultModel test() {
        return new ResultModel(200, "已连接上公共接口");
    }





}
